﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/default.Master" Title="系统操作员管理"  CodeBehind="Operator.aspx.cs" Inherits="Webcar.SysManage.Operator" %>

<%@ Register Src="../Controls/UProgress.ascx" TagName="UProgress" TagPrefix="uc4" %>

<%@ Register Src="../Controls/OperatorEdit.ascx" TagName="OperatorEdit" TagPrefix="uc3" %>

<%@ Register Src="../SearchPanel.ascx" TagName="SearchPanel" TagPrefix="uc2" %>

<%@ Register Src="../Controls/NaviBar.ascx" TagName="NaviBar" TagPrefix="uc1" %>
<%@ Register Assembly="WebPager" Namespace="DevCenterNew" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<div id = "Operator">
    <uc1:NaviBar ID="NaviBar1" runat="server" />
    <uc2:SearchPanel ID="SearchPanel1" OnSearchClick="Seach_Click" runat="server" />
    <table width="100%">
    <tr>
    <td width="100%" valign="top">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" SkinID="gridviewSkin" Width="100%" OnRowDataBound="GridView1_RowDataBound"  DataKeyNames="cn"  >
            <Columns>
                <asp:TemplateField>
                    <ItemStyle HorizontalAlign="Center"  />
                    <ItemTemplate>
                        <asp:Image ID="Image1" runat="server" ImageUrl="~/App_Themes/Default/image2/user_IsOnline.gif" />
                    </ItemTemplate>
                </asp:TemplateField>

                <asp:BoundField DataField="name" HeaderText="姓名" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField DataField="deptname" HeaderText="所属部门" ItemStyle-HorizontalAlign="Center"/>
                <asp:BoundField DataField="corpname" HeaderText="所属单位" ItemStyle-HorizontalAlign="Center"/>

                <asp:BoundField DataField="account" HeaderText="登陆ID" ItemStyle-HorizontalAlign="Center"/>
                <asp:BoundField DataField="CN" HeaderText="门户帐号" ItemStyle-HorizontalAlign="Center"/>
                <asp:BoundField DataField="user_source" HeaderText="用户来源" ItemStyle-HorizontalAlign="Center"/>
                
                <asp:TemplateField HeaderText="是否启用" >
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemTemplate>
                    <asp:CheckBox ID="cbEnable" runat="server" Enabled="false" />
                     </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="是否管理员" >
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemTemplate>
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                            <asp:CheckBox ID="cbSuper" runat="server" Enabled="true" AutoPostBack="true" OnCheckedChanged="CBSuper_CheckedChanged"/>
                            <asp:Label ID="lblSuperId" runat="server" Visible="false" Text='<%# Eval("account") %>' />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                     </ItemTemplate>
                </asp:TemplateField>

                <asp:TemplateField HeaderText="派车审核权限" >
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemTemplate>
                    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                        <ContentTemplate>
                            <asp:CheckBox ID="cbPC" runat="server" Enabled="true"  AutoPostBack="true" OnCheckedChanged="CBPC_CheckedChanged"/>
                            <asp:Label ID="lblPcId" runat="server" Visible="false" Text='<%# Eval("account") %>' />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                     </ItemTemplate>
                </asp:TemplateField>

                <asp:TemplateField HeaderText="派车删除权限" >
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemTemplate>
                    <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                        <ContentTemplate>
                            <asp:CheckBox ID="cbPCdel" runat="server" Enabled="true"  AutoPostBack="true" OnCheckedChanged="CBPC_CheckedChanged2"/>
                            <asp:Label ID="lblPcId2" runat="server" Visible="false" Text='<%# Eval("account") %>' />
                        </ContentTemplate>
                    </asp:UpdatePanel>
                     </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="设置权限" >
                    <ItemStyle HorizontalAlign="Center" />
                    <ItemTemplate>
                        <asp:HyperLink ID="linkGrant" runat="server" NavigateUrl="~/login.aspx">设置权限</asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <%--<asp:HyperLinkField DataNavigateUrlFields="account" DataNavigateUrlFormatString="UserGrant.aspx?userid={0}"
                    Text="设置权限">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:HyperLinkField>--%>
            </Columns>
        </asp:GridView>
        <div class="pager">
            <div style="text-align:right;">
                <cc1:WebPager Width="400px" ID="WebPager1" runat="server" DisplayText="<span style='color: black'>第{0}页&nbsp共{1}页&nbsp总计{2}条&nbsp每页{3}条</span>"  />
            </div>
        </div>
        <%--<uc4:UProgress ID="UProgress1" runat="server" />--%>
      
    </td>
    </table>
</div>
   
    <%--</asp:UpdatePanel>--%>
</asp:Content>
